package com.club325.voicemicroblog.persist.test;

import com.club325.voicemicroblog.database.hibernateutil.HibernateUtil;
import com.club325.voicemicroblog.domain.Focus;

public class FocusEnvironment implements Environment {
	protected Focus fc1;
	protected Focus fc2;
	
	public static final String SpeakerID1 = UserEnvironment.TestUserID1;
	public static final String SpeakerID2 = UserEnvironment.TestUserID2;
	public static final String ListenerID1 = UserEnvironment.TestUserID3;
	public static final String ListenerID2 = UserEnvironment.TestUserID4;

	public void setup() {
		fc1 = new Focus();
		fc2 = new Focus();
		fc1.setSpeaker(SpeakerID1);
		fc2.setSpeaker(SpeakerID2);
		fc1.setListener(ListenerID1);
		fc2.setListener(ListenerID2);
		HibernateUtil.add(fc1);
		HibernateUtil.add(fc2);
	}

	public void tearDown() {
		HibernateUtil.delete(fc1);
		HibernateUtil.delete(fc2);
	}

}
